﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Volo.Abp.Application.Dtos;
using WisDom.SmartTMS.Enums;

namespace WisDom.SmartTMS.Dtos
{
    /// <summary>
    /// 审核Dto
    /// </summary>
   public class AuditDto:EntityDto<Guid>
    {
        /// <summary>
        /// 审核主表ID
        /// </summary>
        [Required(ErrorMessage ="审核表ID不能为空")]
        public Guid AuditId { get; set; }
        /// <summary>
        /// 业务编号ID
        /// </summary>
        //public Guid BusinessCode { get; set; }

        /// <summary>
        /// 业务类别编号ID
        /// </summary>
        [Required(ErrorMessage ="业务编号不能为空")]
        public BusinessType BusinessTypeCode { get; set; }

        /// <summary>
        /// 审核结果0审核中，1同意，2拒绝
        /// </summary>
        public AuditState State { get; set; }

        /// <summary>
        /// 最后审核结束时间
        /// </summary>
        public DateTime? AuditTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public Guid? CreatorID { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        [StringLength(20)]
        public String CreatorRealName { get; set; }
        /// <summary>
        /// 审批备注
        /// </summary>
        [StringLength(100)]
        [Required(ErrorMessage = "备注不能为空")]
        public string Remark { get; set; }
    }
}
